// 基于template/src/views/\{{appModules}}/\{{pages@DEKANBANVIEW}}/\{{spinalCase page.codeName}}-model.ts.hbs生成
import { IDataViewModel } from "@/core/interface/view/model";

//  获取视图模型
function getModel(): IDataViewModel {
    return {
        {{> @macro/view/view-model.hbs page=page}}
        rowActiveMode: {{page.mDCtrlActiveMode}},        
    }
};

//  获取工具栏
function getToolbarItems() {
  return [
{{#page.ctrls}}
    {{#eq controlType 'TOOLBAR'}}
  {{> @macro/widgets/toolbar/toolbar-item.hbs items=psDEToolbarItems view=page toolbar=this}}
    {{/eq}}
{{/page.ctrls}}
  ]
}

export const model = getModel();
export const toolbarItems = getToolbarItems();